<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <div class="row-fluid">
        <div class="span6">
            <img src="#{root}img/portatil-inftel.png" />
        </div><!--/span-->
        <div class="span6">
            <h2><h:outputText value="#{msgs.bienvenida}"/></h2><br/>
            <p><h:outputText value="#{msgs.intro1}"/><br/><br/>
                <h:outputText value="#{msgs.intro2}"/></p>
        </div><!--/span-->
    </div><!--/row-->

    <div class="row-fluid" align="center">
        <div style="width: 275px" align="left">
            <h:form id="login" class="well">
                <h3><h:outputText value="#{msgs.iniciaSesion}"/></h3><br/>
                <h:outputLabel value="#{msgs.usuario}"/>
                <h:inputText id="mail" value="#{login.email}" required="true"/><br/>
                <h:outputLabel value="#{msgs.pass}"/>
                <h:inputSecret id="Contrasena" value="#{login.psswd}" required="true"/> 
                <c:if rendered="true" test="${login.error == 1}">
                    <h:outputLabel value="${msgs.errorLog}" id="error" style="font-weight: bold;color:red"/>
                </c:if>
                <h:commandButton value="#{msgs.iniciaSesion}&nbsp;&raquo;" class="btn btn-primary btn-large" style="margin-top: 10px" action="#{login.submit}"></h:commandButton>
            </h:form>
        </div><!--/span-->
    </div><!--/row-->


</ui:composition>

